package com.bytedance.improvingroad

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.widget.TextView
import com.bytedance.improvingroad.refecttion.AutoWired
import com.bytedance.improvingroad.refecttion.ViewIdInject

class TestActivity : AppCompatActivity() {

    @AutoWired(R.id.textView)
    lateinit var textView: TextView
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_test2)
        ViewIdInject.injectView(this)
        Log.e("cx","文本内容：${textView.text}")
    }
}